package com.biz.aoao.mysql.mysqlbinlogsync.extra;


import com.biz.aoao.mysql.mysqlbinlogsync.config.BinLogPositionInfo;
import com.github.shyiko.mysql.binlog.event.EventType;

/**
 * @Author scgaopan
 * @Date 2020/8/27 16:07
 * @Version 1.0
 * @Desc
 */
public interface IBinlogSyncInfoSetting {


    /**
     * 对binlog日志位置信息的保存处理
     * @param serverId
     * @param fileName
     * @param eventLength
     * @param position
     * @param eventType
     */
    void recordingBinLogPositon(Long  serverId,String fileName, Long eventLength, Long position, EventType eventType);


    /**
     * 对binlog日志位置信息的保存处理
     * @param serverId
     * @param fileName
     * @param position
     */
    void recordingBinLogPositon(Long  serverId,String fileName,  Long position);


    /**
     * 根据服务名称获取bin log日志的位置信息
     * @return
     */
    BinLogPositionInfo getCurrentBinLogPositonInfo(Long  serverId);

}
